@echo off
set str=123456789
set var=%str:~0,1%
echo %var%